<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>cloth store</title>

    <!-- Bootstrap -->
    <link href="/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/common.css">
    <link rel="stylesheet" href="/css/index.css">
    <link rel="stylesheet" href="/assets/bootstrapValidator/css/bootstrapValidator.min.css">
    <link rel="stylesheet" href="/assets/toastr/toastr.css"> 
    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->

  </head>
  <body>
    <div class="store">

      <header class="header">
        
      </header>

      <div class="banner">
        <img src="/images/banner.png" alt="">
      </div>

      <div class="main wrapper">
        <!--special sale  -->
        <div class="section">
          <div class="section-title">
            <h2>SPECIAL SALE</h2>
            <h6 style="margin-top:10px">NEW PRODUCT SALE</h6>
          </div>
          <ul class="section-list clearfix" id="clothing-top">

            <!-- <li>
              <a href="/detail.html">
                <div class="cloth-img">
                  <img src="/images/cloth1.jpg" alt=""> 
                </div>
                <div class="cloth-info">
                  <p class="cloth-name mxt-hidden">
                    Pompeo warns deterrence "on the horizon" over Russian acts on Ukraine, Venezuela
                  </p>
                  <div class="price">￥<span>499.00</span></div> 
                  </div>
              </a>
            </li> -->

          </ul>
        </div>
        <div class="section">
          <div class="section-banner">
            <img src="/images/block2.png" alt="">
          </div>
          <div class="section-title">
            <h2>OUR SALES</h2>
            <h6 style="margin-top:10px">AWESOME SALES</h6>
          </div>
          <ul class="section-list clearfix" id="clothing-bottom">
              <!-- <li>
                <a href="/detail.html">
                  <div class="cloth-img">
                    <img src="/images/cloth1.jpg" alt=""> 
                  </div>
                  <div class="cloth-info">
                    <p class="cloth-name mxt-hidden">
                      Pompeo warns deterrence "on the horizon" over Russian acts on Ukraine, Venezuela
                    </p>
                    <div class="price">￥<span>499.00</span></div> 
                    </div>
                </a>
              </li> -->
          </ul>
        </div>
        <div class="section">
          <div class="section-title">
            <h2>ADVERTISMENTS</h2>
            <h6>AWESOME SHOP</h6>
          </div>
          <ul class="adv-list clearfix">
            <li>
                <img src="/images/adv1.png" alt="">
            </li>
            <li class="adv02 clearfix">
              <div>
                <img src="/images/adv0201.png" alt="">
              </div>
              <div>
                <img src="/images/adv0202.png" alt="">
            </li>
            <li>
                <img src="/images/adv03.png" alt="">
            </li>
            <li>
                <img src="/images/adv04.png" alt="">
            </li>
          </ul>
        </div>
      </div>

      <footer class="footer">
      </footer>
    </div>
    <script src="/js/jquery-3.3.1.min.js"></script>
    <script src="/js/common.js"></script>
    <script src="/assets/bootstrap/js/bootstrap.min.js"></script>
    <script src="/assets/bootstrapValidator/js/bootstrapValidator.min.js"></script>
    <script src="/assets/toastr/toastr.min.js"></script>
    <script src="/js/jquery.base64.min.js"></script>
    <script>
      $(function(){
        var data='';
        // 请求首页数据
        $.ajax({   
            type:'post',
            dataType:'json', 
            url: "/getIndexData",
            success: function(data) { 
            //     data=data;
            //     let clothingTopHtml='';
            //     let clothingBottomHtml='';
            //     for (var i=0;i<data[0].length;i++){
            //       clothingTopHtml+='<li>'
            //                           +'<a href="/detail?line=0&row='+i+'">'
            //                           +'<div class="cloth-img">'
            //                             +'<img src="'+data[0][i].img_src+'" alt="">'
            //                           +'</div>'
            //                           +'<div class="cloth-info">'
            //                             +'<p class="cloth-name mxt-hidden">'
            //                               +data[0][i].title
            //                             +'</p>'
            //                             +'<div class="price">￥<span>'+data[0][i].price+'</span></div> '
            //                             +'</div>'
            //                           +'</a>'
            //                         +'</li>'
            //     }
            //     for (var i=0;i<data[1].length;i++){
            //       clothingBottomHtml+='<li>'
            //                           +'<a href="/detail?line=1&row='+i+'">'
            //                           +'<div class="cloth-img">'
            //                             +'<img src="'+data[1][i].img_src+'" alt=""> '
            //                           +'</div>'
            //                           +'<div class="cloth-info">'
            //                             +'<p class="cloth-name mxt-hidden">'
            //                               +data[1][i].title
            //                             +'</p>'
            //                             +'<div class="price">￥<span>'+data[1][i].price+'</span></div> '
            //                             +'</div>'
            //                           +'</a>'
            //                         +'</li>'
            //     }
            //     $('#clothing-top').html(clothingTopHtml)
            //     $('#clothing-bottom').html(clothingBottomHtml)
            }
        });


      })
    
    </script>
  </body>
</html>